﻿<template>
	<view
		class="margin-10 bg-white"
	>
	<!-- v-if="count > 0" -->
		<!-- <u-notice-bar :text="notcieText" url="/pages/notice/list/list" bgColor="#ffffff" color="#333333"></u-notice-bar> -->
		<u-notice-bar :text="asData.noticeText" :bgColor="asData.backgroundColor" :color="asData.textColor"></u-notice-bar>
	</view>
</template>

<script>
	export default {
		name: "Notice",
		components: {},
		props: {
			asData: {
				type: Object,
				required: {},
			}
		},
		data() {
			return {
				notcieText: "",
			}
		},
		created() {
			console.log("sda", this.asData)
			// if (this.asData.length > 0) {
			// 	for (var i = 0; i < this.asData.length; i++) {
			// 		this.notcieText += this.asData[i].title + '【' + this.$u.timeFormat(this.asData[i].createTime,
			// 			'yyyy年mm月dd日') + '】' + '\u00A0\u00A0\u00A0\u00A0\u00A0';
			// 	}
			// };
		},
		computed: {
			count() {
				return (this.asData.length > 0)
			}
		}
	}
</script>